//package com.rongji.cms.tools.flowable.controller;/**
// * @author yang
// * @date 2022/9/20 14:40
// * @description
// */
//
//import com.rongji.cms.tools.common.core.domain.PageQuery;
//import com.rongji.cms.tools.common.core.page.TableDataInfo;
//import com.rongji.cms.tools.flowable.domain.vo.WfDefinitionVo;
//import com.rongji.cms.tools.flowable.domain.vo.WfDetailVo;
//import com.rongji.cms.tools.flowable.domain.vo.WfTaskVo;
//import com.rongji.cms.tools.flowable.service.IWfProcessService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Map;
//
///**
// * @author yang
// * @date 2022/9/20 14:40
// * @description
// */
//@Deprecated
//@Slf4j
//@Api(tags = "工作流流程管理")
//@RequiredArgsConstructor
//@RestController
//@RequestMapping("/workflow/process")
//public class WfProcessController {
//    private final IWfProcessService processService;
//
//    @GetMapping(value = "/list")
//    @ApiOperation(value = "查询可发起流程列表", response = WfDefinitionVo.class)
//    public TableDataInfo<WfDefinitionVo> list(PageQuery pageQuery) {
//        return processService.processList(pageQuery);
//    }
//
//
//    @ApiOperation(value = "根据流程定义id启动流程实例")
//    @PostMapping("/start/{processDefId}")
//    public String start(@ApiParam(value = "流程定义id") @PathVariable(value = "processDefId") String processDefId,
//                        @ApiParam(value = "变量集合,json对象") @RequestBody Map<String, Object> variables) {
//        processService.startProcess(processDefId, variables);
//        return "流程启动成功";
//
//    }
//
//    @ApiOperation(value = "查询流程详情信息")
//    @GetMapping("/detail")
//    public WfDetailVo detail(String procInsId, String deployId, String taskId) {
//        return processService.queryProcessDetail(procInsId, deployId, taskId);
//    }
//
//    @ApiOperation(value = "获取待办列表", response = WfTaskVo.class)
//    @GetMapping(value = "/todoList")
//    public TableDataInfo<WfTaskVo> todoProcess(PageQuery pageQuery) {
//        return processService.queryPageTodoProcessList(pageQuery);
//    }
//
//    @ApiOperation(value = "获取已办列表", response = WfTaskVo.class)
//    @GetMapping(value = "/finishedList")
//    public TableDataInfo<WfTaskVo> finishedProcess(PageQuery pageQuery) {
//        return processService.queryPageFinishedProcessList(pageQuery);
//    }
//}
